package com.punch.order.design;


import com.alibaba.fastjson.JSONObject;
import com.punch.common.dto.order.OrderDTO;
import com.punch.common.exception.BusinessException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public interface PayStrategy {

    /**
     * 生成统一签名订单信息
     *
     * @param orderDTO 订单信息
     * @return 订单信息
     */
    JSONObject payOrder(OrderDTO orderDTO) throws BusinessException;


    /**
     * 支付回调
     *
     * @param request  请求
     * @param response 返回
     * @return string
     */
    String payNotify(HttpServletRequest request, HttpServletResponse response) throws BusinessException;
}
